import * as Router from 'koa-router';
import userCtrl from '../controllers/user/user';
import OrderController from '../controllers/order/orderDel';

const router = new Router();
router.prefix('/api/public');
router.post('/login', userCtrl.login);
router.post('/register', userCtrl.register);

/**
 * 测试游戏平台接口
 */
router.post('/getOrder', OrderController.getOrderNo);
router.post('/chankOrder', OrderController.chankOrder);
router.post('/payOrder', OrderController.payOrder);
router.post('/userInfo', userCtrl.userInfo);

export default router;